#ifndef _FONTS_MANAGER_H
#define _FONTS_MANAGER_H

typedef struct FontBitMap{
    int iXLeft;
	int iYTop;
    int iXMax;
	int iYMax;
    int iBpp;
	int iPitch; 
    int iCurOriginX;
	int iCurOriginY;
    int iNextOriginX;
    int iNextOriginY;
    unsigned char *pucBuffer;
}T_FontBitMap, *PT_FontBitMap;

typedef struct FontOpr {
    char *name;
    int(*FontInit)(char *pcFontFile, unsigned int dwFontSize);
    int (*GetFontBitmap)(unsigned int dwCode, PT_FontBitMap ptFontBitMap);
    struct FontOpr* ptNext;
}T_FontOpr,*PT_FontOpr;
int RegisterFontOpr(PT_FontOpr ptFontOpr);
int GBKInit(void);
int ASCIIInit(void);
int FreeTypeInit(void);
void ShowFontOpr(void);
int FontsInit(void);
PT_FontOpr GetFontOpr(char *pcName);
#endif
